package com.cadre.system.service.impl;

import com.cadre.common.utils.oldutil.DateUtil;
import com.cadre.system.domain.officer.A04;
import com.cadre.system.domain.officer.EduInfo;
import com.cadre.system.mapper.A04Mapper;
import com.cadre.system.service.EduService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service("eduService")
/* loaded from: EduServiceImpl.class */
public class EduServiceImpl implements EduService {
    @Autowired
    private A04Mapper a04Mapper;

    @Override // com.tdqy.cadre.modular.profess.service.EduService
    public List<EduInfo> eduinfo(String personid, String A0449) {
        List<EduInfo> eduInfos = new ArrayList<>();
        Map<String, Object> map = new HashMap<>();
        map.put("personid", personid);
        map.put("A0449", A0449);
        List<A04> a04s = this.a04Mapper.selectByPersonid(map);
        if (a04s.size() > 0) {
            for (int i = 0; i < a04s.size(); i++) {
                EduInfo eduInfo = new EduInfo();
                eduInfo.setFlowid(a04s.get(i).getFlowid());
                eduInfo.setPersonid(a04s.get(i).getPersonid());
                eduInfo.setA0405(a04s.get(i).getA0405());
                eduInfo.setA0411(a04s.get(i).getA0411());
                eduInfo.setA0415(DateUtil.dateToStr(a04s.get(i).getA0415()));
                eduInfo.setA0430(DateUtil.dateToStr(a04s.get(i).getA0430()));
                eduInfo.setA0435(a04s.get(i).getA0435());
                eduInfo.setA0449(a04s.get(i).getA0449());
                eduInfos.add(eduInfo);
            }
        } else {
            System.out.println("-----------A04 null----------");
        }
        return eduInfos;
    }
}
